<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="/WEB-INF/taglib/util.tld" prefix="util" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<%
	Throwable ex = null;
	if(exception!=null)
		ex = exception;
	if (request.getAttribute("javax.servlet.error.exception") != null)
		ex = (Exception)request.getAttribute("javax.servlet.error.exception");
	%>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		<title></title>
	</head>
	<link href="${ctx }/css/main/base.css" rel="stylesheet" type="text/css" />
	<link href="${ctx }/css/main/main.css" rel="stylesheet" type="text/css" />
		<script src="<c:url value="/scripts/commons/prototype.js"/>" type="text/javascript"></script>
	<body >
		<div id="main">
			<div class="m_han2 font14">
				
				<h3>
					<span><div style="margin-left: 60px;"><a href="#" onClick="$('detail_error_msg').toggle();">运行异常(查看详情)</a></div></span>
				</h3>
				<div align="center">
				<button onclick="javascript:window.location ='${ctx}/index.jsp';">返回首页</button>
				</div>
			</div>
		</div>
		
		<div id="detail_error_msg" style="display: none">
					<%
							if(ex!=null)
								out.println(ex.getMessage());
						%>
					<% if (ex != null) { %>
					<div style="width: 100%">
					<pre>
						<% ex.printStackTrace(new java.io.PrintWriter(out)); %>
					</pre>
					<% } %>
					</div>
				</div>
	</body>
</html>
